--[[/**
-- * 
 * 西泽标记的敌人
 * 回血时, 西泽也回血
 *
-- *
-- */]]

---@class BuffEffect615305 : BaseBuffEffect
BuffEffect615305 = ClientFight.CreateClass("BuffEffect615305", ClientFight.BaseBuffEffect)
local t = BuffEffect615305

---@param fight Fight
---@param buff FighterBuff
function t:action(fight, buff, ...)
    local parameters = {...};
    local damage = parameters[1];
    local damageShare = Utils.calcRatio(damage, buff.buffBean.f_BuffEffectValue[1]);
    if (damageShare < 1) then
        return super.action(fight, buff, parameters);
    end
    local source = buff.source;

    SkillRoleMgr.savePathFile("[" .. fight.frame .. "][EFFECT]Fighter " .. buff.target.fighterId .. " Buff:"
            .. buff.modelId .. " 回血时, 给buff来源西泽也恢复：" .. damageShare);
    DamageManager.setFighterHp(fight, source, buff.target, nil, DamageResultTypeEnum.HEAL, damageShare, source.hp + damageShare
    , false, false, true);
    return ClientFight.BaseBuffEffect.action(self, fight, buff, ...);
end

t.New()